package org.jeecg.modules.storage.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.storage.entity.BussStorageNoticeCarinfo;
import org.jeecg.modules.storage.entity.BussStorageNoticeMaterial;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 入库通知单
 * @Author: jeecg-boot
 * @Date: 2024-06-18
 * @Version: V1.0
 */
@Data
@ApiModel(value = "buss_storage_noticePage对象", description = "入库通知单")
public class BussStorageNoticePage {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;


    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

    /**
     * 采购id
     */
    @ApiModelProperty(value = "采购id")
    private String procurementId;

    /**
     * 状态
     */
//	@Excel(name = "状态", width = 15)
    private Integer status;


    //	@ExcelCollection(name="入库通知单-车辆信息")
    @ApiModelProperty(value = "入库通知单-车辆信息")
    private List<BussStorageNoticeCarinfo> bussStorageNoticeCarinfoList;
    //	@ExcelCollection(name="入库通知单原料单")
    @ApiModelProperty(value = "入库通知单原料单")
    private List<BussStorageNoticeMaterial> bussStorageNoticeMaterialList;
//	@ExcelCollection(name="入库通知单原料单")
//	@ApiModelProperty(value = "入库通知单原料单")
//	private List<BussStorageNoticeMaterialVo> bussStorageNoticeMaterialVoList;


    /**
     * 物料id
     */
//	@Excel(name = "物料id", width = 15)
    private String materialId;
    /**
     * 仓库
     */
//	@Excel(name = "仓库", width = 15)
    private String storehouse;

    private String supplierName;

    private String erpLocationCode;

    private String erpWarehouseName;

    /**
     * 明细id
     */
    private String detailId;

    @ApiModelProperty(value = "是否废弃")
    private Integer disuse;

    private String detailStatus;


    @Excel(name = "入库类型", width = 15, orderNum = "0", dicCode = "rk_type")
    @ApiModelProperty(value = "入库类型")
    private String storageType;

    /**
     * 单据编号
     */
    @Excel(name = "入库单号", width = 15, orderNum = "1")
    @ApiModelProperty(value = "单据编号")
    private String code;


    @Excel(name = "仓库名称", width = 15, orderNum = "2", dictTable = "erp_warehouse", dicCode = "code", dicText = "name")
    private String erpWarehouseCode;

    @Excel(name = "物料编号", width = 15, orderNum = "3")
    private String materialCode;

    /**
     * 物料名称
     */
    @Excel(name = "原料名称", width = 15, orderNum = "4")
    private String materialName;

    /**
     * 规格
     */
    @Excel(name = "物料规格", width = 15, orderNum = "5")
    private String spec;

    /**
     * 单位
     */
    @Dict(dicCode = "ji_unit")
    @Excel(name = "计量单位", width = 15, orderNum = "6", dicCode = "ji_unit")
    private String unit;

    /**
     * 实收数
     */
    @Excel(name = "入库数量", width = 15, orderNum = "7", isStatistics = true)
    private String actualNum;

    /**
     * 采购编号
     */
    @Excel(name = "上级单号", width = 15, orderNum = "8")
    private String procurementCode;

    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    @Excel(name = "创建日期", width = 15, orderNum = "9", databaseFormat = "yyyy-MM-dd", exportFormat = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @Excel(name = "制单人", width = 15, orderNum = "10")
    private String createBy;

    /**
     * 所属部门
     */
    @Excel(name = "制单部门", width = 15, orderNum = "11")
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**
     * 进场日期
     */
    @Excel(name = "进厂日期", width = 20, databaseFormat = "yyyy-MM-dd", orderNum = "12", exportFormat = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "入库日期")
    private Date warehouseDate;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称", width = 15, orderNum = "13", dictTable = "erp_supplier", dicCode = "id", dicText = "name")
    @ApiModelProperty(value = "供应商")
    private String supplierId;

    @Excel(name = "生产车间", width = 15, orderNum = "14")
    @ApiModelProperty(value = "生产车间")
    private String workshop;

    /**
     * 批次号
     */
    @Excel(name = "批次号", width = 15, orderNum = "15")
    @ApiModelProperty(value = "批次号")
    private String batchNum;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 15, orderNum = "16")
    private String remark;

    /**
     * 限期日期
     */
    @Excel(name = "限用日期", width = 15, orderNum = "17", databaseFormat = "yyyy-MM-dd", exportFormat = "yyyy-MM-dd")
    private String expiryDate;

    /**
     * 生产日期
     */
    @Excel(name = "生产日期", width = 15, orderNum = "18", databaseFormat = "yyyy-MM-dd", exportFormat = "yyyy-MM-dd")
    private String createDate;

    /**
     * 宝洁采购订单号
     */
    @Excel(name = "宝洁单号", width = 15, orderNum = "19")
    @ApiModelProperty(value = "宝洁采购订单号")
    private String bjProcurementCode;

    @Dict(dicCode = "inspection_results")
    @Excel(name = "质检状态", width = 15, orderNum = "20", dicCode = "inspection_results")
    @ApiModelProperty(value = "质检状态")
    private Integer qcStatus;


    //	@Excel(name = "质检数量", width = 15,orderNum = "9")
    private String qcNum;


    //	@Excel(name = "质检单编号", width = 15,orderNum = "3")
    private String qcCode;


    /**
     * 采购数量
     */
//	@Excel(name = "采购数量", width = 15,orderNum = "10")
    private String procurementNum;

    /**
     * 原发数
     */
//	@Excel(name = "原发数量", width = 15,orderNum = "11")
    private String originalNum;

    private Date factoryTime;

    //	@Excel(name = "让步接受数量", width = 15,orderNum = "19")
    private String concessionNum;


    //	@Excel(name = "库位", width = 15,orderNum = "22",dicCode = "id",dicText = "name",dictTable = "erp_location")
    private String erpLocationId;

    /**
     * 宝洁供应商编号
     */
//	@Excel(name = "宝洁供应商编号", width = 15,orderNum = "23")
    @ApiModelProperty(value = "宝洁供应商编号")
    private String bjSupplierCode;

    /**
     * 宝洁供应商名称
     */
//	@Excel(name = "宝洁供应商名称", width = 15,orderNum = "25")
    @ApiModelProperty(value = "宝洁供应商名称")
    private String bjSupplierName;

    /**
     * 库位
     */
    private String erpLocationName;

    /**
     * 物料批号
     */
    private String materialLotNum;

    @ApiModelProperty(value = "客户物料编号")
    private String customerMaterialNo;


    /**
     * 质检单号
     */
    private String inspectionCode;

}
